package indi.kider.sys.gateway.related;

import indi.kider.common.model.employee.Employee;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import pers.vankid.common.model.base.CommonResponse;

import java.util.List;

/**
 * Created by shixj on 2018/1/3.
 */
@FeignClient(value = "human-resources")
public interface EmployeeService {
    @GetMapping(value = "employee/loginName/{loginName}")
    CommonResponse<List<Employee>> getUsersToLogin(@PathVariable(value = "loginName") String loginName);
    @PutMapping(value = "employee")
    CommonResponse modify(@RequestBody Employee employee);
    @GetMapping(value = "employee/{employeeId}")
    CommonResponse<Employee> getEmployeeById(@PathVariable(value = "employeeId") Long employeeId) ;
}
